import { http } from '@/package_salesman_check/utils/request.js'

enum Urls {
	stockList = 'mini/stock/list',
	stockDetail = 'mini/stock/detail',
	stockModify = 'mini/stock/modify',
	stockCheck = 'mini/stock/check',
}

// 盘点列表
export const stockList = (params) => http.get(Urls.stockList, params)

// 盘点详情
export const stockDetail = (params) => http.get(Urls.stockDetail, params)

// 盘点修改数量
export const stockModify = (data) => http.post(Urls.stockModify, data)

// 盘点完成
export const stockCheck = (data) => http.post(Urls.stockCheck, data)